package com.zhkj.txg.module.find.entity

import com.chad.library.adapter.base.entity.MultiItemEntity
import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse
import java.io.Serializable

data class AssociateProductResponse(
    val data: MutableList<AssociateProductEntity> = mutableListOf()
) : BaseResponse() {
    var hasMore: Boolean = true
    var isLoadMore: Boolean = true
}

data class AssociateProductEntity(
    @SerializedName("goods_id")
    val goodsId: Long,
    @SerializedName("goods_name")
    val goodsName: String = "",
    val image: String = "",
    @SerializedName("goods_price")
    val goodsPrice: String = ""
) : MultiItemEntity, Serializable {
    companion object {
        val TYPE_NONE = 0
        val TYPE_PRODUCT = 1
    }

    override var itemType: Int = TYPE_PRODUCT
}